export {}

//自定义类型
type  mytype = string|number


// let id:string|number;  //联合类型
let id:mytype;   //自定义类型


id = "2309284028302384--12-12-12-1212"
id = 101
// id = true
console.log("id ",101);

function sayhi(param:string|number){
    console.log("hello ," +param)
}

sayhi(100)
sayhi("大家好")


